package com.virtualightning.mvvm.impl.adapter

/**
 *  Anchor : Create by CimZzz
 *  Time : 2021/1/26 15:01:39
 *  Project : zxs-new
 *  缺省的适配器加载策略
 */
class DefaultAdapterLoadStrategy : IAdapterLoadStrategy {
    override fun onLoadPosition(position: Int, totalCount: Int, adapter: UniverseAdapter) {
        if(position > totalCount - 10) {
            adapter.requestLoadMore()
        }
    }
}